import { post, get } from '../utils/request'
// 封装登录接口
// 列表
const adminlist = (data: any) => {
    return get('api/visit/admin/list', data)
}
// 修改
const adminchangestatus = (data: any) => {
    return post('api/visit/admin/changestatus', data)
}

// 删除
const admindel = (data: any) => {
    return get('api/visit/admin/del', data)
}

// 添加页 部门
const departmentlist = (data: any) => {
    return get('api/visit/department/list', data)
}
// 查询单条数据
const adminShow = (data: any) => {
    return get('api/visit/admin/show', data)
}
// 修改
const adminedit = (data: any) => {
    return post('api/visit/admin/edit', data)
}

// 添加
const adminadd = (data: any) => {
    return post('api/visit/admin/add', data)
}

export { adminlist, adminchangestatus, admindel, departmentlist, adminadd, adminShow, adminedit }


